﻿using System;
using Autodesk.Revit.UI;

namespace YArchitech.HVAC.AuxiliaryCurve
{
	public class AnglePointSelection : AuxiliarySelection
	{
		public AnglePointSelection(ExternalCommandData cmd)
		{
			this.m_cmd = cmd;
			this.sel = this.m_cmd.Application.ActiveUIDocument.Selection;
		}

		public override bool Select()
		{
			base.Min = this.sel.PickPoint("请选择基准线起点……");
			base.Max = this.sel.PickPoint("请选择基准线终点……");
			base.AnglePt = this.sel.PickPoint("请选择范围框的边界点");
			return true;
		}
	}
}
